package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 圈子点赞收藏明细
 *
 * @author 刘聪
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tz_article_like_detail")
@Schema(description = "圈子点赞收藏明细")
@Builder
public class ArticleLikeDetail implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 操作人
     */
    @Schema(description = "操作人")
    @TableField(value = "user_id")
    private String userId;


    /**
     * 点赞收藏id
     */
    @Schema(description = "点赞收藏id(这个表存着现在文章的点击量和收藏量)")
    @TableField(value = "biz_id")
    private Long articleLikeId;

    /**
     * 操作日期
     */
    @Schema(description = "操作日期")
    @TableField(value = "operation_date")
    private LocalDateTime operationDate;

    /**
     * 操作类型 0:点赞 1:收藏
     */
    @Schema(description = "操作类型，0:点赞、1:收藏")
    @TableField(value = "operation_type")
    private String operationType;

    /**
     * 收藏类型 0:藏品、1:动态、2:展馆
     */
    @Schema(description = "收藏类型 0:藏品、1:动态、2:展馆")
    @TableField(value = "collection_type")
    private String collectionType;

}
